<script setup lang="ts">
type MethodType = 'PUT'|'DELETE'|'GET'|'Post';
var type:MethodType = 'PUT';

 

</script>

<template>
  <main>
   <h1>TypeScript学习-type-字面量</h1>
   <p>{{type}}</p>
     
  </main> 
</template>

